//
//  HNSNHomePageCell.m
//  ZYManagementSystem
//
//  Created by 星道 on 17/6/14.
//  Copyright © 2017年 乾坤. All rights reserved.
//

#import "HNSNHomePageCell.h"

@implementation HNSNHomePageCell
{
    IBOutlet UILabel *_Title;
    IBOutlet UIImageView *_Img;
    IBOutlet UIImageView *_RedCycle;
}


- (void)setDict:(NSDictionary *)Dict
{
    _Dict = Dict;

    _Title.text = Dict[@"Title"];
    _Img.image  = [UIImage imageNamed:Dict[@"ImgName"]];

    // 小红点要不要显示
    if ([Dict[@"isViewed"] isEqualToString:@"1"])
    {
        // 要显示
        _RedCycle.hidden = NO;
    }
    else
    {
        // 不显示
        _RedCycle.hidden = YES;
    }
}
@end
